<?php

//pr($categories);

?>
<h3>Add a new Subcategory:</h3>
<form method="post" action="<?=$html->url('/subcategories/add');?>">

<?=$form->generateSelectDiv('Subcategory/category_id','Under:',$categories,null,null,null,true,"You must select a category!");?>
<?=$form->generateInputDiv('Subcategory/subcategory_name','Subcategory Name:',true,"You must enter a name!");?>
<?=$form->generateSubmitDiv('Add');?>
</form>
